echo y | sudo apt install ranger
echo y | sudo apt install i3status
echo y | sudo apt install suckless-tools
echo y | sudo apt install i3blocks
echo y | sudo apt install xfce4-terminal
echo y | sudo apt install ncmpcpp
echo y | sudo apt install conky
echo y | sudo apt-get install xfce4
echo y | sudo apt install libxcb1-dev libxcb-keysyms1-dev libpango1.0-dev libxcb-util0-dev libxcb-icccm4-dev libyajl-dev libstartup-notification0-dev libxcb-randr0-dev libev-dev libxcb-cursor-dev libxcb-xinerama0-dev libxcb-xkb-dev libxkbcommon-dev libxkbcommon-x11-dev autoconf xutils-dev libtool
echo y | sudo apt-get install feh 
echo y | sudo apt-get install neofetch 
echo y | sudo apt-get install compton
echo y | sudo apt-get install picom
echo y | sudo apt-get i3
# autoconfi
echo y | sudo apt-get install autoconf autotools-dev m4 autoconf2.13 autoconf-archive gnu-standards autoconf-doc libtool
DIR=$( dirname "$(readlink -f  ${BASH_SOURCE[0]})" )
sudo apt update
sys_version=$(lsb_release -a 2>/dev/null | grep 'Description' | awk -F '[:]+' '{print $2}' | sed 's/[^0-9.]//g')
if [[ "$sys_version" =~ ^22\..*$ ]]
then
  PARENTPATH=$(dirname ${DIR})
  sh ${PARENTPATH}/i3-gaps/install.sh
else
  echo y | sudo apt install i3-gaps
fi
echo y | sudo apt-get install rofi
sudo apt -y install git make i3 gnome-flashback
# git clone https://github.com/nmakel/i3-gnome.git
PARENT_ROOT=$(dirname $DIR)
sh ${PARENT_ROOT}/tools/gitclone.sh  https://github.com/nmakel/i3-gnome.git ${HOME}/temp/github/i3-gnome
cd ${HOME}/temp/github/i3-gnome
sudo make install
cd -
echo y | sudo apt install materia-gtk-theme papirus-icon-theme lxappearance
if [[ ! -z $1 ]] && [[ -d $1 ]] && [[ -z ${unline_path} ]]
then
PREHOME=$1
elif [[ ! -z ${unline_path} ]]
then
PREHOME=${unline_path}
else
PREHOME=${HOME}"/unline"
fi
cp -r ${PREHOME}/i3/backup/* ${HOME}/.config/
